﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/admin-site.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="CodeCamp12.admin._default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
    <style type="text/css">
       .style1
        {
            width: 200px;
        }
    </style>
    
    <script src="../Scripts/AdminDefault.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphBody" runat="server">
    
     <div id="eventContent">
       <form id="Form1" method="post" action="" runat="server">
                    <asp:LoginView ID="LoginView1" runat="server">
                        <LoggedInTemplate>
                            <div class="loginControl">
                            Logged in user: <strong><asp:LoginName ID="LoginName1" runat="server" /></strong>
                            <br/>
                            <strong><asp:LoginStatus ID="LoginStatus1" runat="server" /></strong>
                            </div>

                        </LoggedInTemplate>
                    </asp:LoginView>
                </form>
        <br />
       <h3><a href="ManageEvents.aspx">Create new Code Camp Event</a></h3>
        <br/>
        Previous and current codecamp events:
        <br/>
        <div id="spanInfo"></div>
           <script id="EventsTemplate" type="text/x-jQuery-tmpl">
                <div class="eventDiv">
                    <table>
                        <tr><td><a href="#" class="title">${eventName}</a></td></tr>
                        <tr><td>Starting on: <strong>${startsAt} </strong> - Ending on: <strong>${endsAt} </strong></td></tr>
                        <tr><td>Location: ${location}</td></tr>
                        <tr>
                            <td><a href="TracksTimeSlots.aspx?id=${ID}">Event Schedule</a> |
                                <a href="ManageEvents.aspx?id=${ID}">Edit</a> | 
                                <a href="#" onclick="DeleteEvent('${ID}')">Delete</a>  
                                <button onclick="SetToFinished('${ID}');"  style=" color:${fincolor};">Finished</button>
                                <button onclick="MakeCurrent('${ID}');" style=" color:${color}">Current</button>
                                <button type="button" onclick="ShowImpressionsDialog('${ID}')">Visitor Impressions</button>
                            </td>
                        </tr>
                    </table>
                </div>
           </script>
      
            

     </div>
   
    
    <div id="VisitorImpressionsDialog">
      <form id="validateImpressionsPages" method="GET" action="">
        <table>
            <tr>
                <td class="style1">Link towards the Keynote page:</td>
                <td>
                    <input type="text" id="txtKeynoteLink" name="keynote" style="width: 200px;"/>
                </td>
            </tr>
            <tr>
                <td class="style1">Visitor's impressions page link:</td><td><input type="text" name="breaks" id="txtVisitorImpressions" style="width: 200px;"/></td>
            </tr>
        </table>
        <button onclick="InsertImpressions();">Insert impression pages</button>
      </form>
    </div>
</asp:Content>
